﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Groups.aspx.cs" Inherits="User" %>

<%@ Register Src="../Interface/header.ascx" TagName="header" TagPrefix="uc1" %>

<%@ Register Src="../Interface/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register TagPrefix="hmwebmenu" TagName="MyMenu" Src="~/Interface/menu.ascx"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Quan ly nhom nguoi dung</title>
    <LINK href="../VNPTStyle.css" type="text/css" rel="stylesheet" />
    <link href="../VNPTStyle.css" rel="stylesheet" type="text/css" />
    <link href="../VNPTStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="900" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <uc1:header ID="Header1" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <hmwebmenu:MyMenu ID="MenuTop" runat="server" MenuToLoad="TopMenu" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label8" runat="server" Font-Bold="True"
                                    Text="Hệ thống => Quản trị người dùng"></asp:Label></td>
            </tr>
            <tr>
                <td align="center" style="height: 400px" valign="top">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label1" runat="server" Text="Mã nhóm:"></asp:Label></td>
                            <td align="left">
                                <asp:Label ID="lbGroupID" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label2" runat="server" Text="Tên nhóm:"></asp:Label></td>
                            <td align="left">
                                <asp:TextBox ID="tbGroupName" runat="server" MaxLength="20" CssClass="TextBox" Width="180px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label7" runat="server" Text="Ghi chú:"></asp:Label></td>
                            <td align="left">
                                <asp:TextBox ID="tbDescr" runat="server" Height="75px" MaxLength="20" Rows="5" TextMode="MultiLine"
                                    Width="250px" CssClass="TextBox"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="btSearch" runat="server" CssClass="Button" OnClick="btSearch_Click"
                                    Text="Tìm kiếm" /><asp:Button ID="butAdd" runat="server" Text="Thêm mới" OnClick="butAdd_Click" CssClass="Button" /><asp:Button ID="btEdit" runat="server" CssClass="Button" Text="Sửa" OnClick="btEdit_Click" /><asp:Button
                                            ID="btDel" runat="server" CssClass="Button" Text="Xóa" OnClick="btDel_Click" /></td>
                        </tr>
                    </table>
                    <asp:GridView ID="gvGroup" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="900px" OnRowEditing="Edit_Group">
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <Columns>
                            <asp:CommandField EditImageUrl="~/Image/edit.gif" EditText="" ShowEditButton="True" ButtonType="Image">
                                <ItemStyle Width="25px" HorizontalAlign="Center" />
                            </asp:CommandField>
                            <asp:BoundField DataField="GroupID" HeaderText="M&#227; nh&#243;m">
                                <ItemStyle Width="80px" HorizontalAlign="Left" />
                                <HeaderStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="GroupName" HeaderText="T&#234;n nh&#243;m">
                                <ItemStyle Width="180px" HorizontalAlign="Left" />
                                <HeaderStyle Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Descr" HeaderText="Diễn giải">
                                <ItemStyle Width="350px" HorizontalAlign="Left" />
                                <HeaderStyle Width="400px" />
                            </asp:BoundField>
                        </Columns>
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    <uc2:footer ID="Footer1" runat="server" />
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
